import requests
import json

url = "http://127.0.0.1:8880/heroConfig/save"

payload = json.dumps({
   "heroPropId": 1001,
   "heroSeverId": 2001,
   "ageingHeroPropIds": "3001,3002,3003",
   "dedicatedVoice": "148501,148502,148503,148504",
   "oneselfRemark": "使用关羽时优先打出顺子，获取其他玩家打出顺子的牌时，可以考虑优先往炸弹或顺子方向拿牌",
   "teammateRemark": "使用关羽时优先打出顺子，获取其他玩家打出顺子的牌时，可以考虑优先往炸弹或顺子方向拿牌",
   "heroVideo": "http://wfw.fuyuncc.com/link/heroVideo/Heroguanyu_100.mp4",
   "opponentRemark": "使用关羽时优先打出顺子，获取其他玩家打出顺子的牌时，可以考虑优先往炸弹或顺子方向拿牌",
   "optimalPortfolio": "4001,4002",
   "imageUrl": "https://l3-prod-patch-nddz.bilibiligame.net/background/20231223141732192.png",
   "camp": "蜀",
   "peculiarity": "关羽打出顺子可以获得赖子牌，同时能够让其他角色打顺子有所顾虑",
   "sixGraph": "[{\"dimension\":\"地主\",\"core\":4},{\"dimension\":\"牌权\",\"core\":3},{\"dimension\":\"辅助\",\"core\":1},{\"dimension\":\"农民\",\"core\":3},{\"dimension\":\"难度\",\"core\":3},{\"dimension\":\"主跑\",\"core\":5}]",
   "skill": "[{\"name\":\"单骑\",\"describe\":\"当你打出顺子牌型时，获得一张赖子牌，限一次\",\"sort\":1,\"explain\":\"1、可以当大王使用吗\\n Q:不可以\\n 2、可以单张使用吗？\\n Q:不可以\\n\"},{\"name\":\"武圣\",\"describe\":\"其他玩家打出顺子牌型时，你可以选择一张加入手牌\",\"sort\":2}]",
   "voice": "148533,148534,148535,148537,148538",
   "skins": "skin1,skin2",
   "heroName": "关羽",
   "awake": "{ \"awaken\": [{\"name\":\"初醒\",\"describe\":\"结算时锦标赛积分10%概率翻倍\",\"sort\":1},{\"name\":\"忠魂\",\"describe\":\"打出赖子牌时，刷新【单骑】技能使用次数，限一次\",\"sort\":2},{\"name\":\"顺意\",\"describe\":\"你打出顺子牌型时×1.2倍数\",\"sort\":3},{\"name\":\"造极\",\"describe\":\"结算时锦标赛积分20%概率翻倍\",\"sort\":4},{\"name\":\"神驹\",\"describe\":\"开局自带一匹【赤兔】\",\"sort\":5}]}",
   "appId": 100041
})
headers = {
   'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
